package com.wsp.apimanagement.pojo.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * Package: com.wsp.service.pojo.entity
 * Description： TODO
 *
 * @Author: 巫思平
 * Copyright: Copyright (c) 2020
 * Version: 1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "管理员")
public class Admin {
    @ApiModelProperty("管理员id")
    private long adminId;

    @ApiModelProperty("管理员姓名")
    @NotBlank(message = "姓名不能为空")
    private String adminName;

    @ApiModelProperty("管理员密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty("管理员角色")
    @NotBlank(message = "角色不能为空")
    private String role;

}
